<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/27 0027
 * Time: 上午 10:02
 */

namespace backend\assets;


use common\components\GlobalUrlComponent;
use yii\web\AssetBundle;

class HighMapsAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
    ];
    public $js = [
    ];
    public $depends = [
        AppAsset::class
    ];

    public function __construct(array $config = [])
    {
        $this->js = [
            GlobalUrlComponent::buildStaticUrl("/plugins/highmaps/highmaps.js"),
            GlobalUrlComponent::buildStaticUrl("/plugins/highmaps/drilldown.js"),
            GlobalUrlComponent::buildStaticUrl("/plugins/highmaps/exporting.js"),
            GlobalUrlComponent::buildStaticUrl("/plugins/highmaps/china.js"),
        ];

        $this->css = [
//            GlobalUrlComponent::buildStaticUrl("/plugins/echarts-new/Chart.min.css")
        ];

        parent::__construct($config);
    }
}